package viettravel.DAO;

public class PlaceImageDAO {
	private int mPlaceImageId;
	private byte[] mPlaceImageBLOB;
	private String mPlaceImageCaption;

	public PlaceImageDAO(int _placeImageId, byte[] _placeImageBLOB,
			String _placeImageCaption) {
		mPlaceImageId = _placeImageId;
		mPlaceImageBLOB = _placeImageBLOB;
		mPlaceImageCaption = _placeImageCaption;
	}

	public PlaceImageDAO(int _placeImageId, String _placeImagePath,
			String _placeImageCaption) {
		mPlaceImageBLOB = convertImageToByte(_placeImagePath);
		new PlaceImageDAO(_placeImageId, mPlaceImageBLOB, _placeImageCaption);
	}

	public byte[] convertImageToByte(String _imagePath) {

		return null;
	}

	public int getPlaceImageId() {
		return mPlaceImageId;
	}

	public void setPlaceImageId(int mPlaceImageId) {
		this.mPlaceImageId = mPlaceImageId;
	}

	public byte[] getPlaceImageBLOB() {
		return mPlaceImageBLOB;
	}

	public void setPlaceImageBLOB(byte[] mPlaceImageBLOB) {
		this.mPlaceImageBLOB = mPlaceImageBLOB;
	}

	public String getPlaceImageCaption() {
		return mPlaceImageCaption;
	}

	public void setPlaceImageCaption(String mPlaceImageCaption) {
		this.mPlaceImageCaption = mPlaceImageCaption;
	}

}
